package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SmsSendStatusEnum {
    NOTSEND((byte)1,"未发送"),
    SENDED((byte)2,"已发送");

    private Byte value;
    private String desc;

    public static SmsSendStatusEnum enumOf(byte value) {
        for (SmsSendStatusEnum t : values()) {
            if (t.value.byteValue() == value) {
                return t;
            }
        }
        return null;
    }
}
